﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Article.ascx.cs" Inherits="Hxsoft.AppV1.Admin.ArticleManage.Controls.Article" %>

<script type="text/javascript">
<!--
	function SetRelativeLink(links) {
		if (!links) return;
		var relativeLinkEditor = FCKeditorAPI.__Instances["<%# CtrlLink.ClientID %>"];
		if (relativeLinkEditor) {
			var html = "";
			for (var i = 0; i < links.length; i++) {
				var link = links[i];
				html += "<li><a href=\"" + link.src + "\">" + link.text + "</a></li>";
			}

			if (html != "") {
				html = "<ul>" + html + "</ul>"
				html = relativeLinkEditor.GetHTML() + html;
				relativeLinkEditor.SetHTML(html);
			}
		}
	}
-->
</script>

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="FormTable">
	<tr>
		<td class="FieldBox">
			标题
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlTitle" runat="server" Columns="60"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlTitle" runat="server" ControlToValidate="CtrlTitle"
				ErrorMessage="字段 [Title] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
		</td>
		<td class="ValueBox" style="background-color: #EBE9ED;">
			一二三四五六七八九十一二三四五六七八九十 （推荐20字内）
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			中标题
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlMiddleTitle" runat="server" Columns="60"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlMiddleTitle" runat="server" ControlToValidate="CtrlMiddleTitle"
				ErrorMessage="字段 [MiddleTitle] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
		</td>
		<td class="ValueBox" style="background-color: #EBE9ED;">
			一二三四五六七八九十一二三四 （推荐14字内）
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			短标题
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlShortTitle" runat="server" Columns="60"></asp:TextBox>
			<asp:RequiredFieldValidator ID="RFVCtrlShortTitle" runat="server" ControlToValidate="CtrlShortTitle"
				ErrorMessage="字段 [ShortTitle] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
		</td>
		<td class="ValueBox" style="background-color: #EBE9ED;">
			一二三四五六七八九十一二 （推荐12字内）
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			副标题
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlViceTitle" runat="server" Columns="60"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			文章代码
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlArticleCode" runat="server" Columns="60"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			图片
		</td>
		<td class="ValueBox">
			<Hxctr:ResourcePopupSelector ID="ImageUploader" FilterResourceTypeName="<%# Hxsoft.AppV1.UploadRule.UploadType_Image %>"
				InfoType="<%# Hxsoft.AppV1.Module.Articles.INFO_TYPE %>" GlobalId="<%# GlobalID %>"
				runat="server" />
		</td>
	</tr>
	
	<tr>
		<td class="FieldBox">
			关键字
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlKeywords" runat="server"></asp:TextBox>
			<span class="FieldExplain">[关键字为搜索时用。]</span>
		</td>
	</tr>
	<tr>
		<td class="FieldBox" style="height: 24px">
			信息来源
		</td>
		<td class="ValueBox" style="height: 24px">
			<asp:TextBox ID="CtrlArtSource" runat="server"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			摘要
		</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlSummary" runat="server" Columns="50" CssClass="FullWidth" Rows="3"
				TextMode="MultiLine"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			内容
		</td>
		<td class="ValueBox">
			<FCK:FCKeditor ID="CtrlArtContent" runat="server" Height="300px">
			</FCK:FCKeditor>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			手机内容
		</td>
		<td class="ValueBox">
			<FCK:FCKeditor ID="CtrlMobileContent" runat="server" Height="200px" ToolbarSet="Basic">
			</FCK:FCKeditor>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			相关链接
		</td>
		<td class="ValueBox">
			<FCK:FCKeditor ID="CtrlLink" runat="server" Height="100px" ToolbarSet="Basic">
			</FCK:FCKeditor>
			<input type="button" class="Button" value="选择..." onclick="javaScript:OpenWindowCenter('<%# this.ResolveUrl("~/ArticleManage/RelativeLinkSelector.aspx?SiteId="+SiteId) %>');" />
		</td>
	</tr>
	<tr>
		<td class="FieldBox">
			发布时间
		</td>
		<td class="ValueBox">
			<Hxctr:JSCalendarTextBox ID="CtrlReleaseDate" runat="server"></Hxctr:JSCalendarTextBox>
			<span class="FieldExplain">[日期格式]</span>
			<Hxctr:DateTimeValidator ID="DTVCtrlReleaseDate" runat="server" ControlToValidate="CtrlReleaseDate"
				Display="none" ErrorMessage="输入字段 [ReleaseDate] 的数据格式不符。">输入字段 [ReleaseDate] 的数据格式不符。</Hxctr:DateTimeValidator>
			<asp:RequiredFieldValidator ID="RFVCtrlReleaseDate" runat="server" ControlToValidate="CtrlReleaseDate"
				ErrorMessage="字段 [ReleaseDate] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
</table>
